//
//  MCGoodsManageModel.swift
//  StoreManage
//
//  Created by MC on 2017/12/20.
//  Copyright © 2017年 MC. All rights reserved.
//

import UIKit

class MCGoodsManageModel: NSObject {

    @objc var productId : Int = 0             // 货品Id
    @objc var salePrice : Int = 0             // 销售价格
    @objc var settlementPrice : Int = 0       // 不含税结算价
    @objc var taxSettlementPrice : Int = 0    // 含税结算价
    @objc var status : NSNumber = 0           // 是否在微商城中显示
    @objc var isCooperate : NSNumber = 0      // 是否推荐给第三方销售
    @objc var platformRate : NSNumber = 0     // 平台最低佣金比例
    @objc var profitRate : NSNumber = 0       // 佣金比例


    
    @objc var billCode    : NSNumber = 0      // 开票类型
    @objc var billMessage : String = ""       // 开票的文字描述

    
    @objc var inventoryNum : Int = 0          // 货品库存
    @objc var isSelected : Bool = false       // 是否勾选
    
    @objc var specStr : String = ""
    @objc var specInfo   : NSArray = [] {
        didSet {
            var index = 0

            for spec in specInfo {
                index += 1
                let sp = spec as! String
                specStr += sp
                if index != specInfo.count {
                    specStr += "\n"
                }
            }
        }
    }
    
    override func setValue(_ value: Any?, forUndefinedKey key: String) { }    
}
